package com.ctbu.tourism.api;import com.ctbu.tourism.entity.Menu;import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Select;import java.util.ArrayList;import java.util.List;/** * @author wanglinli * at 18-4-14 下午4:34 * 注释: */@Mapperpublic interface MenuAPI {    @Select("select tb_menu.* from tb_menu join tb_role_menu on tb_role_menu.rid = #{id} and tb_menu.id = tb_role_menu.mid order by num asc" )    ArrayList<Menu> getMenuByRoleID(Integer id);    @Select("select tb_menu.url from tb_menu join tb_role_menu on tb_role_menu.rid = #{id} and tb_menu.id = tb_role_menu.mid order by num asc" )    ArrayList<String> getMenuUrlByRoleID(Integer id);    @Select("select tb_menu.name from tb_menu join tb_role_menu on tb_role_menu.mid = tb_menu.id join tb_role on tb_role.name = \"超级管理员\"")    List<Menu> getMenuRoleFirst();}